-- GENERATED SPELL FOR [Inner Demon] --


function spell0_21857(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(39309,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21857', 2000, 1)
end

function Sorts_21857(pUnit, Event)
local choix_sorts_21857 = math.random(0, 0)
if choix_sorts_21857 == 0 then
pUnit:RegisterEvent('spell0_21857', 1, 1)
end
end

function mob21857_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21857', math.random(1500, 3000), 1)
end

function mob21857_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21857_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21857_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21857, 1, 'mob21857_Action')
RegisterUnitEvent(21857, 2, 'mob21857_Leave')
RegisterUnitEvent(21857, 3, 'mob21857_Kill')
RegisterUnitEvent(21857, 4, 'mob21857_Die')
